package api

import (
	"github.com/gin-gonic/gin"
	"shop/config/constant"
	"shop/service"
	"shop/utils/convertutil"
	"shop/utils/result"
)

func GetGoodsMenuList(ctx *gin.Context) {
	menuList := service.GetGoodsMenuList(convertutil.ParseInt(ctx.GetHeader(constant.ParamHeaderShopId)))
	result.RenderResult(ctx, result.Ok(menuList))
}
